import request from '@/utils/request'
/* 投票接口 */
export function vote_delete(query) {//
    return request({
        url: '/api/vote/delete',
        method: 'post',
        data: query
    })
}
export function vote_deleteAll(query) {//
    return request({
        url: '/api/vote/deleteAll',
        method: 'post',
        data: query
    })
}
export function vote_edit(query) {//
    return request({
        url: '/api/vote/edit',
        method: 'post',
        data: query
    })
}
export function vote_findById(query) {//
    return request({
        url: '/api/vote/findById',
        method: 'post',
        data: query
    })
}
export function vote_list(query) {//
    return request({
        url: '/api/vote/list',
        method: 'post',
        data: query
    })
}
export function vote_listAll(query) {//
    return request({
        url: '/api/vote/listAll',
        method: 'post',
        data: query
    })
}
export function vote_save(query) {//
    return request({
        url: '/api/vote/save',
        method: 'post',
        data: query
    })
}
export function vote_updateCloseStatus(query) {//
    return request({
        url: '/api/vote/updateCloseStatus',
        method: 'post',
        data: query
    })
}

export function vote_dataStatisticsById(query) {//
  return request({
      url: '/api/vote/dataStatisticsById',
      method: 'post',
      data: query
  })
}
//POST /api/vote/updateTopStatus 批量置顶或取消置顶Vote

export function vote_updateTopStatus(query) {//
  return request({
      url: '/api/vote/updateTopStatus',
      method: 'post',
      data: query
  })
}
